package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 004.果农表
 * </p>
 *
 * @author admin
 * @since 2020-09-07
 */
@TableName("info_farmer")
@Data
public class InfoFarmer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 商铺号码
     */
    @TableField("ShopNum")
    private Long shopNum;

    /**
     * 店铺名称
     */
    @TableField("ShopName")
    private String shopName;

    /**
     * 联系人
     */
    @TableField("Linkman")
    private String linkMan;

    /**
     * 联系电话
     */
    @TableField("Phone")
    private String phone;

    /**
     * 身份证号
     */
    @TableField("IdCard")
    private String idCard;

    /**
     * 姓名
     */
    @TableField("RealName")
    private String realName;

    /**
     * 性别 0=女
     * 1=男
     */
    @TableField("Sex")
    private Integer sex;

    /**
     * 民族
     */
    @TableField("Nation")
    private String nation;

    /**
     * 住址
     */
    @TableField("Address")
    private String address;

    /**
     * 签发机关
     */
    @TableField("Issue")
    private String issue;

    /**
     * 主营水果
     */
    @TableField("MainBusi")
    private String mainBusi;

    /**
     * 种植面积
     */
    @TableField("PlantingArea")
    private BigDecimal plantingArea;

    /**
     * 供货能力
     */
    @TableField("Supply")
    private BigDecimal supply;

    /**
     * 种植位置经度
     */
    @TableField("Longitude")
    private BigDecimal longitude;

    /**
     * 种植位置纬度
     */
    @TableField("Latitude")
    private BigDecimal latitude;

    /**
     * 种植地址
     */
    @TableField("PlantingLocation")
    private String plantingLocation;

    /**
     * 是否实名认证 0=否
     * 1=是
     */
    @TableField("RealNameAuth")
    private Integer realNameAuth;

    /**
     * 保证金金额 保存单位为分
     */
    @TableField("Deposit")
    private Integer deposit;

    /**
     * 保证金状态 0=未缴纳
     * 1=已缴纳
     * 2=申请退回
     * 3=已退回
     */
    @TableField("DepoStatus")
    private Integer depoStatus;

    /**
     * 保证金缴纳时间
     */
    @TableField("DepoPaymTime")
    private LocalDateTime depoPaymTime;

    /**
     * 保证金申请退回时间
     */
    @TableField("DepoApplyBackTime")
    private LocalDateTime depoApplyBackTime;

    /**
     * 保证金退回时间
     */
    @TableField("DepoRefundTime")
    private LocalDateTime depoRefundTime;

    /**
     * 店铺图片
     */
    @TableField("CompHeadPic")
    private String compHeadPic;

    /**
     * 店铺评分
     */
    @TableField("ShopStar")
    private Integer shopStar;

    /**
     * 有无商品上架 0=否（没有商品上架）
     * 1=是（有商品上架）
     */
    @TableField("HasSaleable")
    private Integer hasSaleable;

    /**
     * 权重
     */
    @TableField("Weight")
    private Integer weight;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 是否允许电话联系
     */
    @TableField("AllowPhone")
    private Integer allowPhone;

    /**
     * 经纬度地址
     */
    @TableField("LongLatLocation")
    private String longLatLocation;

    /**
     * 注册状态
     * 1=基本信息
     * 2=已完善信息
     * 3=已进件
     */
    @TableField("RegStatus")
    private Integer regStatus;

    /**
     * 是否锁定
     * 0=未锁定
     * 1=已锁定
     */
    @TableField("Locked")
    private Integer locked;

    @Override
    public String toString() {
        return "InfoFarmer{" +
                "id=" + id +
                ", userId=" + userId +
                ", shopNum=" + shopNum +
                ", shopName=" + shopName +
                ", phone=" + phone +
                ", idCard=" + idCard +
                ", realName=" + realName +
                ", sex=" + sex +
                ", nation=" + nation +
                ", address=" + address +
                ", issue=" + issue +
                ", mainBusi=" + mainBusi +
                ", plantingArea=" + plantingArea +
                ", supply=" + supply +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", plantingLocation=" + plantingLocation +
                ", realNameAuth=" + realNameAuth +
                ", deposit=" + deposit +
                ", depoStatus=" + depoStatus +
                ", depoPaymTime=" + depoPaymTime +
                ", depoApplyBackTime=" + depoApplyBackTime +
                ", depoRefundTime=" + depoRefundTime +
                ", compHeadPic=" + compHeadPic +
                ", shopStar=" + shopStar +
                ", hasSaleable=" + hasSaleable +
                ", weight=" + weight +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
